using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum PlaceState
{
    PlaceNumberSuccess,
    PlaceNumberFail,
    RemoveNumberSuccess,
    RemoveNumberFail,
    PosistionHasNumber,
}

public class OperateNumberResult
{
    public PlaceState PlaceState { get; private set; }
    public List<Vector2Int> RepeatNumber { get; private set; }

    public OperateNumberResult(PlaceState placeState)
    {
        PlaceState = placeState;
        RepeatNumber = new List<Vector2Int>();
    }

    public void ImportRepeatNumber(RepeatNumberList numberList)
    {
        foreach(Vector2Int rowPos in numberList.RowRepeatNumber)
        {
            RepeatNumber.Add(rowPos);
        }

        foreach (Vector2Int colPos in numberList.ColRepeatNumber)
        {
            RepeatNumber.Add(colPos);
        }

        foreach (Vector2Int cellPos in numberList.CellRepeatNumber)
        {
            RepeatNumber.Add(cellPos);
        }
    }
}
